﻿<%@ Page Title="" Language="C#" MasterPageFile="~/InnerInfo/InnerMaster.Master" AutoEventWireup="true" CodeBehind="InnerInfoProcessing.aspx.cs" Inherits="QuaManSys.InnerInfo.InnerInfoProcessing" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript" src="../Calendar/WdatePicker.js"></script>
    <link rel="Stylesheet" href="../Css/QuaInfoPro.css" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphInner" runat="server">
    <div class="Content">
<div>
<div style="text-align:center;">
<label id="lblQuaInfo" ><b>质量信息处理表</b></label>
</div>
<fieldset style="width:100%">

<div>             
<label>编号：</label><asp:DropDownList ID="InfoIdlist" runat="server" 
        onselectedindexchanged="InfoIdlist_SelectedIndexChanged" 
        AutoPostBack="True">
    </asp:DropDownList>
<asp:Label ID="lblState"  runat="server" Text=""></asp:Label>
</div>

<div>
  
    <div>
        <label for="lblInfoCla" class="twenty" >信息来源</label>
        <asp:DropDownList ID="DDLInfoCla" runat="server" class="forty-eight" >
            <asp:ListItem>试车服务通讯会</asp:ListItem>
            <asp:ListItem>公司质量例会</asp:ListItem>
            <asp:ListItem>内审</asp:ListItem>
            <asp:ListItem>一级质量监督</asp:ListItem>
            <asp:ListItem>产品质量报告</asp:ListItem>
        </asp:DropDownList>
        <label for="lblImpLev" class="sixteen">重要级别</label>
        <asp:DropDownList ID="DDLImpLev" runat="server" class="sixteen">
            <asp:ListItem>高</asp:ListItem>
            <asp:ListItem>中</asp:ListItem>
            <asp:ListItem>低</asp:ListItem>
        </asp:DropDownList>
    </div>
    <div style="text-align:left;">
        <label for="lblMacTyp" class="twenty">机型</label><asp:Label ID="txtMacTyp" runat="server" class="sixteen" ></asp:Label>
        <label for="lblMacNo" class="sixteen">机号</label><asp:Label ID="txtMacNo" runat="server" class="sixteen" ></asp:Label>
        <label for="lblProNo" class="sixteen">工程编号</label>
           <asp:DropDownList ID="ddlProNo" runat="server" class="sixteen" >
        </asp:DropDownList>
    </div>
    <div>
        <label for="lblComponent" class="twenty">零部件</label><asp:TextBox 
            ID="txtComponent" runat="server" class="forty-eight"></asp:TextBox>
        <label for="lblFaiTyp" class="sixteen">故障类型</label><asp:TextBox ID="txtFaiTyp" 
            runat="server" class="sixteen"></asp:TextBox>
    </div>
    <div>
        <label for="lblManufac" class="twenty">生产厂家</label><asp:TextBox ID="txtManufac" 
            runat="server" class="eighty"></asp:TextBox>
    </div>
    <div>
        <label for="lblPjCls" class="twenty">项目分类</label><asp:TextBox ID="txtPjCls" 
            runat="server" class="thirty"></asp:TextBox>
        <label for="lblPjNam" class="twenty">名称</label><asp:TextBox ID="txtPjNam" runat="server" class="thirty"></asp:TextBox>
    </div>
    <div>
        <label for="lblDepRes" class="twenty">责任部门</label>
        <asp:DropDownList ID="DDLDepRes" runat="server" class="thirty" >
        </asp:DropDownList>
        <label for="lblProDL" class="twenty">处理时限</label><asp:TextBox ID="txtProDL" runat="server" class="thirty"></asp:TextBox>
    </div>
    <label for="lblDepFoc" class="twenty" >关注部门</label>
    <asp:DropDownList ID="DDLDepFoc"  runat="server" class="eighty" >
    </asp:DropDownList>
    <div>
        
    </div>
    <div style="clear:both">
        <label for="lblCustomer" class="twenty">顾客方联系人</label><asp:TextBox ID="txtCustomer" runat="server" class="thirty"></asp:TextBox>
        <label for="lblCusTel" class="twenty">联系电话</label><asp:TextBox ID="txtCusTel" runat="server" class="thirty"></asp:TextBox>
    </div>
    <div>
        <label for="lblSpeReq" class="twenty" >特别要求</label>
        <asp:TextBox id="txtSpeReq" class="eighty" runat="server" TextMode="MultiLine"></asp:TextBox>
    </div>
    <div>
        <label for="lblInfoDsc" class="twenty">描述</label>
        <asp:TextBox id="txtInfoDsc" class="eighty" runat="server" TextMode="MultiLine"></asp:TextBox>
    </div>
    <div>
        <label for="lblInfoCls" class="twenty">信息分类</label>
        <asp:CheckBox ID="CheckBox1" runat="server" Text="已处理（需后继关注）" />
        <asp:CheckBox ID="CheckBox2" runat="server" Text="未处理（需跟踪解决）" /> 
    </div>
    <div>
        <label for="lblReqAdv" class="twenty">处理要求和意见</label>
        <asp:TextBox id="txtReqAdv" class="eighty" runat="server" TextMode="MultiLine"></asp:TextBox>
    </div>
    <div>
        <label for="lblInfoWrt" class="twenty">登记人</label><asp:Label ID="txtInfoWrt" runat="server" class="sixteen"></asp:Label>
        <label for="lblWrtDep" class="sixteen">部门</label><asp:Label ID="txtInfoDep" runat="server" class="sixteen"></asp:Label>
        <label for="lblWrtDat" class="sixteen">登记日期</label><asp:Label ID="txtWrtDat" runat="server" class="sixteen"></asp:Label>
    </div>
    <div>
        <label for="lblReqRsl" class="twenty">信息处理结果</label>
        <asp:TextBox id="txtReqRsl" class="eighty" runat="server" TextMode="MultiLine"></asp:TextBox>
    </div>
    <div>
        <label for="lblProCmm" class="twenty">质量信息处理评价</label>
        <asp:TextBox id="txtProCmm" class="eighty" runat="server" TextMode="MultiLine"></asp:TextBox>
    </div>
</div>
</fieldset>
<div style="background-color:Aqua; text-align:center;">
    <asp:Button ID="btnRollback" runat="server" Text="回退" />&nbsp; &nbsp;
    <asp:Button ID="btnInfoSub" runat="server" Text="处理" />&nbsp; &nbsp;
    <asp:Button ID="btnAttachment" runat="server" Text="上传附件" />&nbsp; &nbsp;
</div> 
<div style="background-color:Yellow;">
   <asp:Repeater ID="Repeater1" runat="server" DataSourceID="EntityDataSource1" 
        Visible="False">
   <HeaderTemplate>
        <table style="padding:0px,0px,0px,0px; margin:0px,0px,0px,0px; border-width:medium;">
        <tr>
            <td><b>处理部门</b></td>
            <td><b>处理人</b></td>
            <td colspan="3"><b>处理意见</b></td>
            <td><b>处理时间</b></td>
        </tr>
   </HeaderTemplate>
   <ItemTemplate>
            <tr>
              <td >
                <asp:Label runat="server" ID="Label1" Text='<%# Eval("processerDepart") %>' />
              </td>
              <td >
                <asp:Label runat="server" ID="Label2" Text='<%# Eval("processerName") %>' />
              </td>
              <td colspan="3">
                <asp:Label runat="server" ID="Label5" Text='<%# Eval("opinion") %>' />
              </td>
              <td >
                <asp:Label runat="server" ID="Label6" Text='<%# Eval("processingDate") %>' />
              </td>
            </tr>
          </ItemTemplate>
   <FooterTemplate>
        <tr>
            <td><asp:TextBox ID="txtProDept" runat="server"></asp:TextBox></td>
            <td><asp:TextBox ID="txtProName" runat="server"></asp:TextBox></td>
            <td colspan="3"><asp:TextBox ID="txtProOpn" runat="server"></asp:TextBox></td>
            <td><asp:TextBox ID="txtProDate" runat="server" cssclass="Wdate" onClick="WdatePicker()"></asp:TextBox></td>
            <td><asp:linkbutton id="lnkInsert" Text="Insert" Runat="server" OnClick="InsertProinfo" ></asp:linkbutton></td>
        </tr>
        </table>
   </FooterTemplate>
   </asp:Repeater> 
 <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=QuaManSysEntities" 
        DefaultContainerName="QuaManSysEntities" EnableFlattening="False" 
        EntitySetName="InnerQualityInfoPro" 
        Where="" AutoGenerateWhereClause="True" 
        Select="it.[processerName], it.[processerDepart], it.[processingDate], it.[opinion]">
        <WhereParameters>
            <asp:ControlParameter ControlID="InfoIdlist" Name="qualityInfoId" 
                PropertyName="SelectedValue" Type="String" />
        </WhereParameters>
    </asp:EntityDataSource>
    

</div>
</div>

</div>
   <%-- <asp:SqlDataSource ID="srcDepartment" 
    ConnectionString="<%$ ConnectionStrings:QuaManSysConnStr%>"
     SelectCommand="SELECT department FROM Tab_Department"
     runat="server"></asp:SqlDataSource>
     <asp:SqlDataSource ID="srcProjectNo" 
    ConnectionString="<%$ ConnectionStrings:QuaManSysConnStr%>"
     SelectCommand="SELECT projectNo FROM Tab_ProjectNo"
     runat="server"></asp:SqlDataSource>--%>
    <%-- <asp:SqlDataSource ID="srcProcessing" 
     ConnectionString="Data Source=SAFO-PC\SQL05;Initial Catalog=QuaManSys;Persist Security Info=True;User ID=sa;Password=afo"
     selectCommand="SELECT "--%>
</asp:Content>
